package com.magic.gre.mvp.contract;

import com.magic.gre.entity.UserBean;
import com.noname.lib_base_java.mvp.BaseContract;

import java.util.Map;

import io.reactivex.Observer;
import okhttp3.ResponseBody;

/**
 * Author: Lmoumou
 * Date: 2019-01-10 15:50
 * 文件名: CodeContract
 * 描述:
 */
public interface CodeContract {
    interface Model extends BaseContract.BaseModel {
        void mLogin(Observer<ResponseBody> observer, Map<String ,Object> parmsMap);
        void mRegister(Observer<ResponseBody> observer, Map<String ,Object> parmsMap);
        void mBindPhone(Observer<ResponseBody> observer, Map<String ,Object> parmsMap);
        void mSmsCode(Observer<ResponseBody> observer, String phone,int type);

    }

    interface Presenter extends BaseContract.BasePresenter {
        void pLogin(Map<String ,Object> parmsMap);
        void pRegister(Map<String ,Object> parmsMap);
        void pBindPhone(Map<String ,Object> parmsMap);
        void pSmsCode(String phone,int type);

    }

    interface View extends BaseContract.BaseView {
        void vLogin(UserBean userBean);
        void vRegister(UserBean userBean);
        void vBindPhone(UserBean userBean);
        void vSmsCode(String code);

    }
}
